package day1101_4;

import java.util.Scanner;//1.

public class F2 {
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);//2.
        System.out.println("请输入身高：");
        double  h=scan.nextDouble();
        System.out.println("请输入体重：");
        double  w=scan.nextDouble();
        double bmi=w/(h*h);
        if (bmi < 18.5){
            System.out.println("您的体重偏轻，请增加营养");
        }else   if (bmi >=18.5 && bmi <=23.9){
            System.out.println("您的体重正常");
        }else   if (bmi >=24.0 && bmi <27.0){
            System.out.println("您的体重偏重");
        }else   if (bmi >=27.0 && bmi <30.0){
            System.out.println("您已轻度肥胖，请注意");   //Inletex连接   10.5. 2. 214
        }else{
            System.out.println("您已重度肥胖");
        }

    }
}


